package com.hgx.su.example.common.springboot.mongo.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.List;

/**
 * Description:
 * author: HGX
 * DateTime: 2021-02-07 14:13
 */
@Document(collection = "admin_user")
public class AdminUser {

    @Id
    private Long id;
    @Field("user_id")
    private String userId;
    @Field("user_name")
    private String userName;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
